﻿namespace DR.DBDomainModel
{
    public partial class ReportingPeriod
    {
        public string Caption
        {
            get
            {
                return string.Format("{0} - {1}{2}", 
                    this.DateStart.ToShortDateString(),
                    this.DateFinish.ToShortDateString(), 
                    this.IsFinished ? " (closed)" : "");
            }
        }
    }
}